var updateWall = function(){
	var firstTMain = $(".tmain").first();
	var lastid = firstTMain.find("li.tmessage").first().attr("id");
	$.ajax({
		type:"GET",
		url:"./index.php?m=a_wallmore",
		data:"wallid="+wallid+"&lastid="+lastid,
		dataType : "json",
		success : function( result ){
			if(result.code == 0){
				var newmsg = $(result.data);
				var newmsgbody = newmsg.find("li.tmessage").first();
				firstTMain.before(newmsg);
				var newmsgheight = newmsgbody.height();
				newmsgbody.css({"height":"0px",'opacity':"0"});
				newmsgbody.animate({
					height:newmsgheight+'px',
					opacity:1
				},600);
			}
		},
		error:function(){
		}
	});
};
//setTimeout(updateWall,2*1000);
setInterval(updateWall,10/*10秒更新一次*/*1000);